<?php

/**
* @Author:  	Daniel Dinh
* @Email:   	webdevelopmentvn@gmail.com
* @Link: 		http://joomsoft.net
* @Version: 	1.0
* @copyright:	Joomsoft.net
* @license:		GNU Lesser GPL
*/

// No direct accessdefined('_JEXEC') or die;
$user = & JFactory::getUser();
$app =  & JFactory::getApplication();
if(!$user->get('id'))
{
	JError::raiseWarning(403, JText::_('JERROR_ALERTNOAUTHOR'));
	$app->redirect(JURI::root());
}
jimport('joomla.application.component.controller');
$controller = JController::getInstance('Farmacity');
$controller->execute(JRequest::getCmd('task'));
$controller->redirect();
